package com.kiell.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kiell.common.utils.PageUtils;
import com.kiell.gulimall.ware.entity.PurchaseEntity;
import com.kiell.gulimall.ware.vo.MergeVo;
import com.kiell.gulimall.ware.vo.PurchaseDoneVo;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author kiell
 * @email kiell@gmail.com
 * @date 2023-05-25 11:10:14
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询未领取的采购单
     * @param params
     * @return
     */
    PageUtils queryPageUnreceivePurchase(Map<String, Object> params);

    Integer mergePurchase(MergeVo mergeVo);

    int received(List<Long> ids);

    int done(PurchaseDoneVo doneVo);
}

